<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:73:"E:\workplace\project\Sunwm\web/../application/admin\view\seller\edit.html";i:1517543294;s:75:"E:\workplace\project\Sunwm\web/../application/admin\view\public\header.html";i:1503189484;s:73:"E:\workplace\project\Sunwm\web/../application/admin\view\public\city.html";i:1510310973;s:84:"E:\workplace\project\Sunwm\web/../application/admin\view\public\seller_category.html";i:1508380612;s:75:"E:\workplace\project\Sunwm\web/../application/admin\view\public\footer.html";i:1512624954;}*/ ?>
﻿<!DOCTYPE html>
<html lang="zh-cn">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="renderer" content="webkit">
		<title><?php echo config('sitename'); ?>-<?php echo lang('label')['Login_title']; ?></title>
		<link rel="stylesheet" type="text/css" href="__ROOT__/static/public/css/pintuer.css" />
		<link rel="stylesheet" type="text/css" href="__ROOT__/static/admin/css/admin.css" />
		<script type="text/javascript" src="__ROOT__/static/public/js/jquery.js"></script>
		<script type="text/javascript" src="__ROOT__/static/public/js/pintuer.js"></script>
		<script type="text/javascript" src="__ROOT__/static/admin/js/admin.js"></script>
		<script type="text/javascript" src="__ROOT__/static/public/layer/layer.js"></script>
		<script type="text/javascript" src="__ROOT__/static/public/laydate/laydate.js"></script>
		<script type="text/javascript" src="__ROOT__/static/public/laytpl/laytpl.js"></script>
	</head>

	<body>
	<style>
		html { overflow-x:hidden; }
	</style>
<link rel="stylesheet" type="text/css" href="__ROOT__/static/public/umeditor/themes/default/css/umeditor.css" />
<script type="text/javascript" src="__ROOT__/static/public/umeditor/third-party/template.min.js"></script>
<script type="text/javascript" src="__ROOT__/static/public/umeditor/umeditor.config.js"></script>
<script type="text/javascript" src="__ROOT__/static/public/umeditor/umeditor.min.js"></script>
<form method="post" class="form-x" action="<?php if($data['id']): ?>?id=<?php echo $data['id']; endif; ?>">
	<input type="hidden" name="dada_shop_id" value="<?php echo $data['dada_shop_id']; ?>" />
    <div class="panel admin-panel">
        <div class="panel-head"><strong><?php echo lang('currency')['edit']; ?></strong></div>
        <br/>
        <script>
            //city canshu
            var pid = '<?php echo $data['pid']; ?>';
            var cid = '<?php echo $data['cid']; ?>';
            var aid = '<?php echo $data['aid']; ?>';
            var cate_id = '<?php echo $data['cate_id']; ?>';
            var selectc = true;
            var selecta = true;

            function select_a() {
                start();
            }
        </script>
        <div class="form-group">
            <div class="label">
                <label for="name"><?php echo lang('currency')['city']; ?></label>
            </div>
            <div class="field">
                <?php if(input('session.type') == 'province' || input('session.type') == 'all'): ?>
<select id="province" onchange="pchange(this.value)" name="pid" class="input input-auto" >
	<option value="">请选择</option>
</select>
<?php endif; if(input('session.type') == 'province' ||  input('session.type') == 'city' || input('session.type') == 'all'): ?>
<select id="city" onchange="cchange(this.value)" name="cid" class="input input-auto hidden" >
	<option value="">请选择</option>
</select>
<?php endif; ?>
<select id="area" onchange="achange(this.value)" name="aid" class="input input-auto hidden" >
	<option value="">请选择</option>
</select>
<script id="province_list_tpl" type="text/html">
	{{# for(var i = 0, len = d.data.length; i < len; i++){ }}
	<option {{# if(d.data[i].id==pid){ }}selected{{#}}} value="{{ d.data[i].id }}">{{ d.data[i].name }}</option>
	{{# } }}
</script>
<script id="city_list_tpl" type="text/html">
	{{# for(var i = 0, len = d.data.length; i < len; i++){ }}
	<option {{# if(d.data[i].id==cid){ }}selected{{#}}} value="{{ d.data[i].id }}">{{ d.data[i].name }}</option>
	{{# } }}
</script>
<script id="area_list_tpl" type="text/html">
	{{# for(var i = 0, len = d.data.length; i < len; i++){ }}
	<option {{# if(d.data[i].id==aid){ }}selected{{#}}} value="{{ d.data[i].id }}">{{ d.data[i].name }}</option>
	{{# } }}
</script>
<script>
    var func = false;
    $('select').click(function(){
        func = true;
    });
    if(selectc) {
        $('[name=cid]').removeClass('hidden');
    }
    if(selecta){
        $('[name=aid]').removeClass('hidden');
    }
    if('<?php echo input("session.type"); ?>' == 'province' || '<?php echo input("session.type"); ?>' == 'all') {
        $.getJSON('__ROOT__/admin/city/ajax_get?type=province', {}, function (res) {
            var tpl = $("#province_list_tpl").html();
            laytpl(tpl).render(res, function (render) {
                $("#province").html('<option value="">请选择</option>' + render);
            });
            if (pid != '' && pid != 0) {
                $('[name=pid]').change();
            }
        });
    }else if('<?php echo input("session.type"); ?>' == 'city'){
        val = '<?php echo input("session.aid"); ?>';
        if(selectc){
            $.getJSON('__ROOT__/admin/city/ajax_get?type=city&id='+val, {}, function(res){
                var tpl = $("#city_list_tpl").html();
                laytpl(tpl).render(res, function(render){
                    $("#city").html('<option value="">请选择</option>' + render);
                    $("#city").val(cid);
                    $("#city").change();
                });
            });
        }
    }else if('<?php echo input("session.type"); ?>' == 'area'){
        val = '<?php echo input("session.aid"); ?>';
        //if(selecta && aid){
            $.getJSON('__ROOT__/admin/city/ajax_get?type=area&nofather=ok&id='+val, {}, function(res){
                var tpl = $("#area_list_tpl").html();
                laytpl(tpl).render(res, function(render){
                    $("#area").html('<option value="">请选择</option>'+render);
                });
            });
       // }
    }
    function pchange(val) {
        pid = val;
        if(selectc){
            $.getJSON('__ROOT__/admin/city/ajax_get?type=city&id='+pid, {}, function(res){
                var tpl = $("#city_list_tpl").html();
                laytpl(tpl).render(res, function(render){
                    $("#city").html('<option value="">请选择</option>'+render);
                });
                if(selectc == true){
                    if(cid != '' && cid != 0){
                        $('[name=cid]').change();
                    }
                }
            });
        }
        if(func){
            select_p();
        }
    }
    function cchange(val) {
        cid = val;
        if(selecta && cid){
            $.getJSON('__ROOT__/admin/city/ajax_get?type=area&id='+cid, {}, function(res){
                var tpl = $("#area_list_tpl").html();
                laytpl(tpl).render(res, function(render){
                    $("#area").html('<option value="">请选择</option>'+render);
                });
            });
        }
        if(func){
            select_c();
        }
    }
    function achange(val) {
        aid = val;
        $('[name=aid]').removeClass('hidden');
        if(func){
            select_a();
        }
    }
</script>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label><?php echo lang('label')['category']; ?></label>
            </div>
            <div class="field">
                <select id="cate_id" name="cate_id" class="input input-auto">
	<option value="0">请选择</option>
</select>
<script id="cateid_list_tpl" type="text/html">
	{{# for(var i = 0, len = d.data.length; i < len; i++){ }}
		<option {{# if(d.data[i].id==cate_id){}}selected{{#}}} value="{{ d.data[i].id }}">{{ d.data[i].title }}</option>
	{{# } }}
</script>
<script>
	var func = false;
	$('select').click(function(){
		func = true;
	});
	function start(){
        $.getJSON('__ROOT__/admin/<?php echo \think\Request::instance()->controller(); ?>/get_seller_category?aid='+aid, {}, function(res){
            if(res.data.length > 0 ){
                var tpl = $("#cateid_list_tpl").html();
                laytpl(tpl).render(res, function(render){
                    $("#cate_id").html('<option value="0">请选择</option>'+render);
                });
            }
        });
	}
	if(aid != ''){
	    start();
	}
	$('[name=cate_id]').change(function(){
		cate_id = $(this).val();
		if(func == true){
			select_cate();
		}
	});
</script>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label>标签</label>
            </div>
            <div class="field">
                <input type="text" class="input input-auto" id="label" name="label" value="<?php echo $data['label']; ?>" size="18"
                       placeholder="标签"/>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label>坐标</label>
            </div>
            <div class="field">
                <input type="text" class="input input-auto" id="lng" name="lng" value="<?php echo $data['lng']; ?>" size="20"
                       placeholder="经度" data-validate="required:<?php echo lang('currency')['required']; ?>"/>-
				<input type="text" class="input input-auto" id="lat" name="lat" value="<?php echo $data['lat']; ?>" size="20"
                       placeholder="纬度" data-validate="required:<?php echo lang('currency')['required']; ?>"/>
				<input type="hidden" id="range" name="range" value="<?php echo $data['range']; ?>" />
				<span class="addbtn"><button type="button" class="button coor">选择坐标</button></span>
				<span class="addbtn"><button type="button" class="button select_range">配送范围</button></span>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label for="idcard">详细地址</label>
            </div>
            <div class="field">
                <input type="text" class="input input-auto" id="address" name="address" value="<?php echo $data['address']; ?>"
                       size="80" placeholder="详细地址" data-validate="required:<?php echo lang('currency')['required']; ?>"/>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label for="name">店名</label>
            </div>
            <div class="field">
                <input type="text" class="input input-auto" id="name" name="name" value="<?php echo $data['name']; ?>" size="80"
                       placeholder="店名" data-validate="required:<?php echo lang('currency')['required']; ?>"/>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label for="name">真实姓名</label>
            </div>
            <div class="field">
                <input type="text" class="input input-auto" id="truename" name="truename" value="<?php echo $data['truename']; ?>"
                       size="80" placeholder="真实姓名" data-validate="required:<?php echo lang('currency')['required']; ?>"/>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label for="phone"><?php echo lang('label')['phone']; ?></label>
            </div>
            <div class="field">
                <input type="text" class="input input-auto" id="phone" name="phone" value="<?php echo $data['phone']; ?>" maxlength="11"
                       placeholder="<?php echo lang('label')['phone']; ?>"
                       data-validate="required:<?php echo lang('currency')['required']; ?>"/>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label for="password"><?php echo lang('label')['password']; ?></label>
            </div>
            <div class="field">
                <input type="text" class="input input-auto" id="password" name="password" value="" size="80" placeholder="<?php echo lang('label')['password']; ?>" <?php if(!$data['id']): ?>data-validate="required:<?php echo lang('currency')['required']; ?>" <?php endif; ?> />
            </div>
        </div>
        <div class="form-group">
            <div class="input-inline clearfix">
                <div class="label">
                    <label for="headimg">店铺封面</label>
                </div>
                <div class="field">
                    <input type="text" readonly class="input input-auto" id="headimg" name="headimg"
                           value="<?php echo $data['headimg']; ?>" size="65" placeholder="店铺封面"/>
                    <span class="addbtn"><button type="button" data-id="headimg" class="button upload"><?php echo lang('form')['file']; ?></button></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="input-inline clearfix">
                <div class="label">
                    <label for="headimg">店铺详情图片</label>
                </div>
                <div class="field">
                    <input type="text" readonly class="input input-auto" id="detail_image1" name="detail_image1" value="<?php echo $data['detail_image1']; ?>" size="65" placeholder="店铺详情图片"/>
                    <span class="addbtn"><button type="button" data-id="detail_image1" class="button upload"><?php echo lang('form')['file']; ?></button></span>
                </div>
            </div>
        </div>
		<link rel="stylesheet" type="text/css" href="__ROOT__/static/admin/css/daterangepicker.css" />
		<script type="text/javascript" src="__ROOT__/static/public/js/moment.js"></script>
		<script type="text/javascript" src="__ROOT__/static/public/js/daterangepicker.js"></script>
		<style>
			.daterangepicker{
				display:none;
				border: 1px solid #08C;
			}
		</style>
		<div class="form-group">
			<div class="label">
				<label>营业时间</label>
			</div>
			<div class="field">
				<select class="input input-auto" name="start_time">
					<option <?php if($data['start_time']=='0000'): ?>selected<?php endif; ?> value="0000">00:00</option>
					<option <?php if($data['start_time']=='0030'): ?>selected<?php endif; ?> value="0030">00:30</option>
					<option <?php if($data['start_time']=='0100'): ?>selected<?php endif; ?> value="0100">01:00</option>
					<option <?php if($data['start_time']=='0130'): ?>selected<?php endif; ?> value="0130">01:30</option>
					<option <?php if($data['start_time']=='0200'): ?>selected<?php endif; ?> value="0200">02:00</option>
					<option <?php if($data['start_time']=='0230'): ?>selected<?php endif; ?> value="0230">02:30</option>
					<option <?php if($data['start_time']=='0300'): ?>selected<?php endif; ?> value="0300">03:00</option>
					<option <?php if($data['start_time']=='0330'): ?>selected<?php endif; ?> value="0330">03:30</option>
					<option <?php if($data['start_time']=='0400'): ?>selected<?php endif; ?> value="0400">04:00</option>
					<option <?php if($data['start_time']=='0430'): ?>selected<?php endif; ?> value="0430">04:30</option>
					<option <?php if($data['start_time']=='0500'): ?>selected<?php endif; ?> value="0500">05:00</option>
					<option <?php if($data['start_time']=='0530'): ?>selected<?php endif; ?> value="0530">05:30</option>
					<option <?php if($data['start_time']=='0600'): ?>selected<?php endif; ?> value="0600">06:00</option>
					<option <?php if($data['start_time']=='0630'): ?>selected<?php endif; ?> value="0630">06:30</option>
					<option <?php if($data['start_time']=='0700'): ?>selected<?php endif; ?> value="0700">07:00</option>
					<option <?php if($data['start_time']=='0730'): ?>selected<?php endif; ?> value="0730">07:30</option>
					<option <?php if($data['start_time']=='0800'): ?>selected<?php endif; ?> value="0800">08:00</option>
					<option <?php if($data['start_time']=='0830'): ?>selected<?php endif; ?> value="0830">08:30</option>
					<option <?php if($data['start_time']=='0900'): ?>selected<?php endif; ?> value="0900">09:00</option>
					<option <?php if($data['start_time']=='0930'): ?>selected<?php endif; ?> value="0930">09:30</option>
					<option <?php if($data['start_time']=='1000'): ?>selected<?php endif; ?> value="1000">10:00</option>
					<option <?php if($data['start_time']=='1030'): ?>selected<?php endif; ?> value="1030">10:30</option>
					<option <?php if($data['start_time']=='1100'): ?>selected<?php endif; ?> value="1100">11:00</option>
					<option <?php if($data['start_time']=='1130'): ?>selected<?php endif; ?> value="1130">11:30</option>
					<option <?php if($data['start_time']=='1200'): ?>selected<?php endif; ?> value="1200">12:00</option>
					<option <?php if($data['start_time']=='1230'): ?>selected<?php endif; ?> value="1230">12:30</option>
					<option <?php if($data['start_time']=='1300'): ?>selected<?php endif; ?> value="1300">13:00</option>
					<option <?php if($data['start_time']=='1330'): ?>selected<?php endif; ?> value="1330">13:30</option>
					<option <?php if($data['start_time']=='1400'): ?>selected<?php endif; ?> value="1400">14:00</option>
					<option <?php if($data['start_time']=='1430'): ?>selected<?php endif; ?> value="1430">14:30</option>
					<option <?php if($data['start_time']=='1500'): ?>selected<?php endif; ?> value="1500">15:00</option>
					<option <?php if($data['start_time']=='1530'): ?>selected<?php endif; ?> value="1530">15:30</option>
					<option <?php if($data['start_time']=='1600'): ?>selected<?php endif; ?> value="1600">16:00</option>
					<option <?php if($data['start_time']=='1630'): ?>selected<?php endif; ?> value="1630">16:30</option>
					<option <?php if($data['start_time']=='1700'): ?>selected<?php endif; ?> value="1700">17:00</option>
					<option <?php if($data['start_time']=='1730'): ?>selected<?php endif; ?> value="1730">17:30</option>
					<option <?php if($data['start_time']=='1800'): ?>selected<?php endif; ?> value="1800">18:00</option>
					<option <?php if($data['start_time']=='1830'): ?>selected<?php endif; ?> value="1830">18:30</option>
					<option <?php if($data['start_time']=='1900'): ?>selected<?php endif; ?> value="1900">19:00</option>
					<option <?php if($data['start_time']=='1930'): ?>selected<?php endif; ?> value="1930">19:30</option>
					<option <?php if($data['start_time']=='2000'): ?>selected<?php endif; ?> value="2000">20:00</option>
					<option <?php if($data['start_time']=='2030'): ?>selected<?php endif; ?> value="2030">20:30</option>
					<option <?php if($data['start_time']=='2100'): ?>selected<?php endif; ?> value="2100">21:00</option>
					<option <?php if($data['start_time']=='2130'): ?>selected<?php endif; ?> value="2130">21:30</option>
					<option <?php if($data['start_time']=='2200'): ?>selected<?php endif; ?> value="2200">22:00</option>
					<option <?php if($data['start_time']=='2230'): ?>selected<?php endif; ?> value="2230">22:30</option>
					<option <?php if($data['start_time']=='2300'): ?>selected<?php endif; ?> value="2300">23:00</option>
					<option <?php if($data['start_time']=='2330'): ?>selected<?php endif; ?> value="2330">23:30</option>
				</select>
				
				至
				
				<select class="input input-auto" name="end_time">
					<option <?php if($data['end_time']=='0030'): ?>selected<?php endif; ?> value="0030">00:30</option>
					<option <?php if($data['end_time']=='0100'): ?>selected<?php endif; ?> value="0100">01:00</option>
					<option <?php if($data['end_time']=='0130'): ?>selected<?php endif; ?> value="0130">01:30</option>
					<option <?php if($data['end_time']=='0200'): ?>selected<?php endif; ?> value="0200">02:00</option>
					<option <?php if($data['end_time']=='0230'): ?>selected<?php endif; ?> value="0230">02:30</option>
					<option <?php if($data['end_time']=='0300'): ?>selected<?php endif; ?> value="0300">03:00</option>
					<option <?php if($data['end_time']=='0330'): ?>selected<?php endif; ?> value="0330">03:30</option>
					<option <?php if($data['end_time']=='0400'): ?>selected<?php endif; ?> value="0400">04:00</option>
					<option <?php if($data['end_time']=='0430'): ?>selected<?php endif; ?> value="0430">04:30</option>
					<option <?php if($data['end_time']=='0500'): ?>selected<?php endif; ?> value="0500">05:00</option>
					<option <?php if($data['end_time']=='0530'): ?>selected<?php endif; ?> value="0530">05:30</option>
					<option <?php if($data['end_time']=='0600'): ?>selected<?php endif; ?> value="0600">06:00</option>
					<option <?php if($data['end_time']=='0630'): ?>selected<?php endif; ?> value="0630">06:30</option>
					<option <?php if($data['end_time']=='0700'): ?>selected<?php endif; ?> value="0700">07:00</option>
					<option <?php if($data['end_time']=='0730'): ?>selected<?php endif; ?> value="0730">07:30</option>
					<option <?php if($data['end_time']=='0800'): ?>selected<?php endif; ?> value="0800">08:00</option>
					<option <?php if($data['end_time']=='0830'): ?>selected<?php endif; ?> value="0830">08:30</option>
					<option <?php if($data['end_time']=='0900'): ?>selected<?php endif; ?> value="0900">09:00</option>
					<option <?php if($data['end_time']=='0930'): ?>selected<?php endif; ?> value="0930">09:30</option>
					<option <?php if($data['end_time']=='1000'): ?>selected<?php endif; ?> value="1000">10:00</option>
					<option <?php if($data['end_time']=='1030'): ?>selected<?php endif; ?> value="1030">10:30</option>
					<option <?php if($data['end_time']=='1100'): ?>selected<?php endif; ?> value="1100">11:00</option>
					<option <?php if($data['end_time']=='1130'): ?>selected<?php endif; ?> value="1130">11:30</option>
					<option <?php if($data['end_time']=='1200'): ?>selected<?php endif; ?> value="1200">12:00</option>
					<option <?php if($data['end_time']=='1230'): ?>selected<?php endif; ?> value="1230">12:30</option>
					<option <?php if($data['end_time']=='1300'): ?>selected<?php endif; ?> value="1300">13:00</option>
					<option <?php if($data['end_time']=='1330'): ?>selected<?php endif; ?> value="1330">13:30</option>
					<option <?php if($data['end_time']=='1400'): ?>selected<?php endif; ?> value="1400">14:00</option>
					<option <?php if($data['end_time']=='1430'): ?>selected<?php endif; ?> value="1430">14:30</option>
					<option <?php if($data['end_time']=='1500'): ?>selected<?php endif; ?> value="1500">15:00</option>
					<option <?php if($data['end_time']=='1530'): ?>selected<?php endif; ?> value="1530">15:30</option>
					<option <?php if($data['end_time']=='1600'): ?>selected<?php endif; ?> value="1600">16:00</option>
					<option <?php if($data['end_time']=='1630'): ?>selected<?php endif; ?> value="1630">16:30</option>
					<option <?php if($data['end_time']=='1700'): ?>selected<?php endif; ?> value="1700">17:00</option>
					<option <?php if($data['end_time']=='1730'): ?>selected<?php endif; ?> value="1730">17:30</option>
					<option <?php if($data['end_time']=='1800'): ?>selected<?php endif; ?> value="1800">18:00</option>
					<option <?php if($data['end_time']=='1830'): ?>selected<?php endif; ?> value="1830">18:30</option>
					<option <?php if($data['end_time']=='1900'): ?>selected<?php endif; ?> value="1900">19:00</option>
					<option <?php if($data['end_time']=='1930'): ?>selected<?php endif; ?> value="1930">19:30</option>
					<option <?php if($data['end_time']=='2000'): ?>selected<?php endif; ?> value="2000">20:00</option>
					<option <?php if($data['end_time']=='2030'): ?>selected<?php endif; ?> value="2030">20:30</option>
					<option <?php if($data['end_time']=='2100'): ?>selected<?php endif; ?> value="2100">21:00</option>
					<option <?php if($data['end_time']=='2130'): ?>selected<?php endif; ?> value="2130">21:30</option>
					<option <?php if($data['end_time']=='2200'): ?>selected<?php endif; ?> value="2200">22:00</option>
					<option <?php if($data['end_time']=='2230'): ?>selected<?php endif; ?> value="2230">22:30</option>
					<option <?php if($data['end_time']=='2300'): ?>selected<?php endif; ?> value="2300">23:00</option>
					<option <?php if($data['end_time']=='2330'): ?>selected<?php endif; ?> value="2330">23:30</option>
					<option <?php if($data['end_time']=='2400'): ?>selected<?php endif; ?> value="2400">24:00</option>
				</select>
			</div>
		</div>
        <!-- <div class="form-group">
            <div class="input-inline clearfix">
                <div class="label">
                    <label for="headimg">店铺详情图片2</label>
                </div>
                <div class="field">
                    <input type="text" readonly class="input input-auto" id="detail_image2" name="detail_image2" value="<?php echo $data['detail_image2']; ?>" size="65" placeholder="店铺详情图片2"/>
                    <span class="addbtn"><button type="button" data-id="detail_image2" class="button upload"><?php echo lang('form')['file']; ?></button></span>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="input-inline clearfix">
                <div class="label">
                    <label for="headimg">店铺详情图片3</label>
                </div>
                <div class="field">
                    <input type="text" readonly class="input input-auto" id="detail_image3" name="detail_image3" value="<?php echo $data['detail_image3']; ?>" size="65" placeholder="店铺详情图片3"/>
                    <span class="addbtn"><button type="button" data-id="detail_image3" class="button upload"><?php echo lang('form')['file']; ?></button></span>
                </div>
            </div>
        </div> -->
        <div class="form-group">
            <div class="label">
                <label><?php echo lang('label')['status']; ?></label>
            </div>
            <div class="field">
                <div class="button-group button-group-small radio">
                    <label class="button <?php if($data['status'] == "1" || !$data['status']): ?>active<?php endif; ?>">
                    <input name="status" value="1" <?php if($data['status']=="1" || !$data['status']): ?>checked="checked"<?php endif; ?> type="radio"><span class="icon icon-check"></span>
                        <?php echo lang('currency')['status_1']; ?>
                    </label>
                    <label class="button <?php if($data['status'] == "2"): ?>active<?php endif; ?>">
                    <input name="status" value="2" <?php if($data['status']== "2"): ?>checked="checked"<?php endif; ?> type="radio"><span class="icon icon-times"></span>
                        <?php echo lang('currency')['status_2']; ?>
                    </label>
                </div>
            </div>
        </div>
				<!-- <div class="form-group">
					<div class="label">
						<label>配送方式</label>
					</div>
					<div class="field">
						<div class="button-group button-group-small radio">
							<label class="button <?php if($data['express_type']== 1 || !$data['express_type']): ?>active<?php endif; ?>">
									<input name="express_type" value="1" <?php if($data['express_type']== 1 || !$data['express_type']): ?>checked="checked"<?php endif; ?> type="radio"><span class="icon icon-check"></span> 平台配送
							</label>
							<label class="button <?php if($data['type'] == 2): ?>active<?php endif; ?>">
							<input name="express_type" value="0" <?php if($data['express_type']== 2): ?>checked="checked"<?php endif; ?> type="radio"><span class="icon icon-check"></span> 达达配送
							</label>
						</div>
					</div>
				</div> -->
        <div class="form-group">
            <div class="label">
                <label>抽佣模式</label>
            </div>
            <div class="field">
                <div class="button-group button-group-small radio">
                    <label class="button <?php if($data['comode'] == 1): ?>active<?php endif; ?>">
						<input name="comode" value="1" <?php if($data['comode']== 1): ?>checked="checked"<?php endif; ?> type="radio"><span class="icon icon-check"></span>
						先抽佣
                    </label>
                    <label class="button <?php if(!$data['comode']): ?>active<?php endif; ?>">
                        <input name="comode" value="0" <?php if(!$data['comode']): ?>checked="checked"<?php endif; ?> type="radio"><span class="icon icon-check"></span>
                        后抽佣
                    </label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label>是否支持预约</label>
            </div>
            <div class="field">
                <div class="button-group button-group-small radio">
                    <label class="button <?php if($data['advance'] == 1): ?>active<?php endif; ?>">
                    <input name="advance" value="1" <?php if($data['advance']== 1): ?>checked="checked"<?php endif; ?> type="radio"><span class="icon icon-check"></span>
                    <?php echo lang('currency')['status_1']; ?>
                    </label>
                    <label class="button <?php if(!$data['advance']): ?>active<?php endif; ?>">
                        <input name="advance" value="0" <?php if(!$data['advance']): ?>checked="checked"<?php endif; ?> type="radio"><span class="icon icon-times"></span>
                        <?php echo lang('currency')['status_2']; ?>
                    </label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label>是否推荐</label>
            </div>
            <div class="field">
                <div class="button-group button-group-small radio">
                    <label class="button <?php if($data['flag'] == 1): ?>active<?php endif; ?>"><input name="flag" value="1" <?php if($data['flag']== 1): ?>checked="checked" <?php endif; ?> type="radio"><span
                            class="icon icon-check"></span> <?php echo lang('currency')['status_1']; ?></label>
                    <label class="button <?php if($data['flag'] == 0 || !$data['flag']): ?>active<?php endif; ?>"><input name="flag" value="0" <?php if($data['flag']== 0 || !$data['flag']): ?>checked="checked" <?php endif; ?> type="radio"><span class="icon icon-times"></span> <?php echo lang('currency')['status_2']; ?></label>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label for="name">新用户首单立减</label>
            </div>
            <div class="field">
                <input type="text" class="input input-auto" id="new_user_reduction" name="new_user_reduction"
                       value="<?php echo $data['new_user_reduction']; ?>" size="10" placeholder="金额"
                       data-validate="required:<?php echo lang('currency')['required']; ?>"/> 元
            </div>
        </div>
		<div class="form-group">
            <div class="label">
                <label for="name">起送价</label>
            </div>
            <div class="field">
                <input type="text" class="input input-auto" id="min_express_charge" name="min_express_charge"
                       value="<?php echo $data['min_express_charge']; ?>" size="10" placeholder="金额"
                       data-validate="required:<?php echo lang('currency')['required']; ?>"/> 元
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label>抽成比例</label>
            </div>
            <div class="field">
                <input type="text" class="input input-auto" style="width: 100px" max="100" min="1" name="cut"
                       value="<?php if(!$data['cut']): ?>1<?php else: ?><?php echo $data['cut']; endif; ?>"> %
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label for="idcard"><?php echo lang('label')['idcard']; ?></label>
            </div>
            <div class="field">
                <input type="text" class="input input-auto" id="idcard" name="idcard" value="<?php echo $data['idcard']; ?>" size="80"
                       placeholder="<?php echo lang('label')['idcard']; ?>"
                       data-validate="required:<?php echo lang('currency')['required']; ?>"/>
            </div>
        </div>
        <div class="form-group">
            <div class="input-inline clearfix">
                <div class="label">
                    <label for="idcardimg"><?php echo lang('label')['idcardimg']; ?></label>
                </div>
                <div class="field">
                    <input type="text" readonly class="input input-auto" id="idcardimg" name="idcardimg"
                           value="<?php echo $data['idcardimg']; ?>" size="65" placeholder="<?php echo lang('label')['idcardimg']; ?>"
                           data-validate="required:<?php echo lang('currency')['required']; ?>"/>
                    <span class="addbtn"><button type="button" data-id="idcardimg" class="button upload"><?php echo lang('form')['file']; ?></button></span>
                    <br/>
                    <br/>
                    <p><img height=100px src="<?php echo $data['idcardimg']; ?>"/></p>
                </div>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label for="idcard">提现帐号</label>
            </div>
            <div class="field">
                <input type="text" class="input input-auto" id="bank_card" name="bank_card" value="<?php echo $data['bank_card']; ?>"
                       size="80" placeholder="打款方式-卡号" data-validate="required:<?php echo lang('currency')['required']; ?>"/>
            </div>
        </div>
        <div class="form-button">
            <button class="button bg-main" type="submit"><?php echo lang('form')['submit']; ?></button>
        </div>
        <br/>
    </div>
</form>
<script>
    $("[name='status']").click(function () {
        var status = $("[name='status']:checked").val();
        if (status == '4') {
            $("#refuse").removeClass('hidden');
        } else {
            $("#refuse").addClass('hidden');
        }
    });
	$(".coor").click(function(){
		layer.open({
			type:2,
			title:'选择坐标',
			area: ['60%', '80%'],
			offset: '5%',
			content: "<?php echo url('/admin/seller/map'); ?>"
		});
	});
	$(".select_range").click(function(){
		layer.open({
			type:2,
			title:'选择坐标',
			area: ['60%', '80%'],
			offset: '5%',
			content: "<?php echo url('/admin/seller/map'); ?>?type=range"
		});
	});
    var um = UM.getEditor('myEditor');
</script>
<p class="text-center text-gray" style="margin-top:10px;"><a class="text-gray" target="_blank" href="http://www.wm0530.com">完美外卖系统 Power by 网络工厂</a></p>
</body>
<script>
$('.upload').on('click',function (){
		var id = $(this).attr('data-id');
		 upload(id);
	}
);
function upload(id){
	layer.open({
		type:2,
		title:false,
		area: ['70%', '90%'],
		offset: '5%',
		content: "<?php echo url('/admin/material'); ?>?id="+id
	});
}
</script>
</html>